<?php
Junction_FileCabinet::using("Junction_Utils_IO_File");
Junction_FileCabinet::using("Junction_Resources_Catalog");

class Test_Junction_Utils_IO_File extends UnitTestCase {
	
	public function testConstruct() {
		try {
			$file = new Junction_Utils_IO_File(Junction_Resources_Catalog::fetch("Catalog.php"));
			$this->pass();
		} catch (Junction_Utils_IO_Exception $e) {
			$this->fail();
		}
	}
	
	public function testIterator() {
		$file = new Junction_Utils_IO_File(Junction_Resources_Catalog::fetch("Catalog.php"));
		foreach ($file as $line) {
			$line = $line;
		}
		$this->pass();
	}
}
?>